package com.xxy.springcloud.feign;

import com.xxy.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("CLOUD-PAYMENT-SERVICE")
//@RequestMapping("")
public interface Feign {

    @PostMapping(value = "/payment/create")
    CommonResult create(@RequestParam("serial") String serial);

    @GetMapping(value = "/payment/get/{id}")
    CommonResult getPaymentById(@PathVariable("id") Long id);

}

